import request from '@/utils/request'
// 太空舱规格
// 规格列表
export function spaceRoom(data) {
  return request({
    url: '/capsule/specs/page',
    method: 'post',
    data: data
  })
}
// 规格详情
export function spaceRoomDetail(id) {
  return request({
    url: '/capsule/specs/getDetail/' + id,
    method: 'get'
  })
}
// 删除
export function spaceRoomDelete(id) {
  return request({
    url: '/capsule/specs/delete/' + id,
    method: 'get'
  })
}
// 新增和修改
export function spaceRoomAdd(data) {
  return request({
    url: '/capsule/specs/modify',
    method: 'post',
    data: data
  })
}
// 规格列表
export function spaceRoomType(type) {
  return request({
    url: '/system/dict/data/type/' + type,
    method: 'get'
  })
}
// 获取太空舱基地列表
export function capsuleInfoSelects(data) {
  return request({
    url: '/capsule/pay/order/capsuleInfoSelects',
    method: 'post',
    data: data
  })
}
